css: Fix border value parsing
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2021 05:11:42 +0000 (00:11 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Feb 2021 05:12:51 +0000 (00:12 -0500)
This function was not resetting computed as it meant
to because the last loop was never executed.

Pointed out in https://www.viva64.com/en/b/0793/

gtk/gtkcssbordervalue.c

index 7e5c32b86b44720a406ad2d7d04b5c1b41188f1e..a9b9ef00015426e76406fb5ff081ef90ffc451ef 100644 (file)
@@ -218,7 +218,7 @@ _gtk_css_border_value_parse (GtkCssParser           *parser,
     }
 
   result->is_computed = TRUE;
-  for (; i < 4; i++)
+  for (i = 0; i < 4; i++)
     if (result->values[i] && !gtk_css_value_is_computed (result->values[i]))
       {
         result->is_computed = FALSE;